

package fastwave.common.auth.sys.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import fastwave.common.auth.sys.entity.SysRole;
import fastwave.common.auth.sys.service.SysRoleService;
import fastwave.common.auth.sys.mapper.SysRoleMapper;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 * 服务实现类
 *
 */
@Service
@RequiredArgsConstructor
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> implements SysRoleService {

	/**
	 * 通过用户ID，查询角色信息
	 * @param userId
	 * @return
	 */
	@Override
	public List findRolesByUserId(Integer userId) {
		return baseMapper.listRolesByUserId(userId);
	}

}
